//
//  UIButton+Countdown.h
//  Dome
//
//  Created by Lj on 16/5/12.
//  Copyright © 2016年 Lj. All rights reserved.
//

#import <UIKit/UIKit.h>

@interface UIButton (Countdown)

@property (nonatomic, strong) dispatch_source_t timer;
/*
 倒计时按钮
 
 @param timeLine 倒计时总时间
 @param title 还没有倒计时的title
 @param subTitle 倒计时中的子名字，如时、分
 @param mColor 还没倒计时的颜色
 @param color 倒计时中的颜色
 
 */

- (void)startWithTime:(NSInteger)timeLine
               title:(NSString *)title
      countDownTitle:(NSString *)subTitle
           mainColor:(UIColor *)mColor
          countColor:(UIColor *)color;
- (void)stopWithButtonmainColor:(UIColor *)mColor title:(NSString *)title;


@end
